<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<c:import url="billingStat.jsp" />
<table class="cntable table table-bordered dataTable table-billing">
	<thead>
		<tr>
			<th style="width:50px">序号</th>			
			<th style="width:60px">客户</th>
			<th style="width:50px">销售总额</th>
			<th style="width:50px">成本</th>
			<th style="width:50px">毛利</th>
			<th style="width:50px">毛利率</th>
		</tr>
	</thead>
	<tbody>
		<c:forEach var="billingStat" items="${billingStats}" varStatus="status">
			
			<tr data-id="">
				<td>${status.index+1}</td>
				<td>${billingStat.customerName}</td>
				<td><fmt:formatNumber value="${billingStat.marketMoney}" pattern="0.00"></fmt:formatNumber></td>
				<td><fmt:formatNumber value="${billingStat.costMoney}" pattern="0.00"></fmt:formatNumber></td>
				<td><fmt:formatNumber value="${billingStat.marketMoney-billingStat.costMoney}" pattern="0.00"></fmt:formatNumber></td>
				<td><fmt:formatNumber value="${(billingStat.marketMoney-billingStat.costMoney)/billingStat.marketMoney}" pattern="0.00"></fmt:formatNumber></td>
			</tr>
		</c:forEach>
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>
